import { render } from "@testing-library/react"
import React from 'react'
import {Button, Popconfirm} from 'antd'
import MoTaiKuang2 from "../MoTaiKuan/MoTaiKuang2"

//------------------删除弹框
const Del = () => {
  return(
    <Popconfirm title="确定删除吗？" okText="是的" cancelText="不删除">
      <a href="#">删除</a>
    </Popconfirm>
  )
}
const defaultState ={
   tableList: [{
    title: '项目ID',
    dataIndex:'key'
  },
  {
    title: '项目名称',
    dataIndex:'name'
  },
  {
    title: '原价',
    dataIndex:'price'
  },
  {
    title: '售价',
    dataIndex:'solPrice'
  },
  {
    title: '适用地区',
    dataIndex:'area'
  },
  {
    title: '是否启用',
    dataIndex:'status'
  },
  {
    title: '订单数量',
    dataIndex:'num'
  },
  {
    title: '操作',
    dataIndex:'render'
    
  }
],
dataList:[
  {
    key: 1,
    name: '心电图',
    price: 180,
    solPrice: 99,
    area: '广东省,湖南省',
    status: '启用',
    num:'88',
    render:(
      <div>
        <MoTaiKuang2></MoTaiKuang2>
        <Del></Del>
        
      </div>
    )
  }

]
}
 

function reducer(state=defaultState , action){


  return state
}
export default reducer;